# ANCIENNES FONCTIONS

def supprimerPartiesInutiles(laChaine):
	try:
		lUMR = laChaine.index("UMR")
		return ""
	except Exception:
		try:
			lUPR = laChaine.index("UPR")
			return ""
		except Exception:
			try:
				lUPR = laChaine.index("Inst")
				return ""
			except Exception:
				try:
					lUPR = laChaine.index("Dept")
					return ""
				except Exception:
					try:
						lUPR = laChaine.index("Lab")
						return ""
					except Exception:
						return supprimerTiret(laChaine)


def utiliserGeoNames(lAdresse):
	try:
		g = geocoders.GeoNames()
		for place, (lat, lng) in g.geocode(lAdresse, exactly_one = False):
			'''print "%s: %.5f, %.5f" % (place, lat, lng)'''
			return [place, lng, lat]
	except Exception:
		return ""


def afficherListe(laListe):
    for uneAdresse in laListe:
        print(uneAdresse[2])